|
|
|
| Table 4.5 Naming Standards for Controls. | | Object | Prefix | Example | | Form | frm | frmMail | | Check box | chk | chkLanguages | | Combo box | cbo | cboStates | | Command button | cmd | cmdSave | | Data | dat | datMail | | Directory list box | dir | dirSource | | Drive list box | drv | drvUserDrives | | File list box | fil | filSource | | Frame | fra | fraCards | | Grid | grd | grdPartList | | Horizontal scrollbar | hsb | hsbPartList | | Image | img | imgIcon | | Label | lbl | lblFirstName | | Line | lin | linSeparate | | List box | lst | lstCountries | | Menu | mnu | mnuFile | | OLE | ole | oleClient | | Option button | opt | optSex | | Picture box | pic | picEmployee | | Shape | shp | shpRectangle | | Text box | txt | txtFirstName | | Time | tmr | tmrAlarm | | Vertical scrollbar | vsb | vsbPartList |
|
|
|
|
|
|
Always use these prefixes in Visual Basic applications. In Appendix A, VBA Programming Standards, youll find recommended programming standards for Visual Basic applications. Its strongly suggested that you follow these standards at all times. |
|
|
|
|
|